package com.ruoyi.prod.entity.po;

import com.baomidou.mybatisplus.annotation.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 采购管理-资产类别
 * </p>
 *
 * @author 强子初
 * @since 2023-02-16
 */
@ApiModel(value = "BaseAssetType对象", description = "采购管理-资产类别")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("base_asset_type")
public class BaseAssetType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("父部门id")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty("类别编码")
    @TableField("code")
    private String code;

    @ApiModelProperty("类别名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("显示顺序")
    @OrderBy(sort = 1, asc = true)
    @TableField("`order`")
    private Integer order;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("状态（0正常 1停用）")
    @TableField("status")
    private String status;
}
